﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChrComposition.aspx.cs" Inherits="Admin_Chr" Title="Admin ~ CHR Composistion" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<%@ Register src="../Usercontrols/Menu2.ascx" tagname="Menu2" tagprefix="uc4" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                                                                              
                                <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading" align="left" style="width: 400px" >CHAR COMPOSITION</td>
                                                                             <td align="left" ><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server"></asp:Label> </td>
                                                                             <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label></td>
                                                                        </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                <tr id="trtextboxchr" runat="server" >
                                    <td>
                                        <table >                                        
                                                                        
                                                <tr class="altanateAshBkg" id="tr2" runat="server" visible="false" >
                                                    <td class='label'>Id</td>
                                                    <td><asp:TextBox ID="txtChrCompId" runat="server" cssclass='textBox' Width='150px'  MaxLength="50"></asp:TextBox></td>
                                                </tr> 
                                
                                                <tr class="ashBkg">
                                                    <td colspan="2">
                                                        <table style="width: 868px" >
                                           
                                                            <tr class="ashBkg">
                                                            <td class='label'>C 
                                                                (wt%)&nbsp; 
                                                                <asp:TextBox ID="txtC" runat="server" cssclass='textBox' 
                                                                    Width='40px' MaxLength="100"></asp:TextBox></td>
                                                            <td class='label' style="width: 234px">H 
                                                                (wt%) 
                                                                <asp:TextBox ID="txtH" runat="server" cssclass='textBox' 
                                                                    Width='40px' MaxLength="100"></asp:TextBox></td>
                                                            <td class='label'>Ash (wt%) 
                                                                <asp:TextBox ID="txtAsh" runat="server" cssclass='textBox' Width='40px' 
                                                                    MaxLength="10"></asp:TextBox></td>
                                                            </tr>
                                            
                                                            <tr class="altanateAshBkg ">
                                                            <td class='label'>S (wt%) &nbsp;<asp:TextBox ID="txtS" runat="server" cssclass='textBox' 
                                                                    Width='40px' MaxLength="10"></asp:TextBox></td>
                                                            <td class='label' style="width: 234px">N 
                                                                (wt%)&nbsp; 
                                                                <asp:TextBox ID="txtN" runat="server" cssclass='textBox' 
                                                                    Width='40px' MaxLength="10"></asp:TextBox></td>
                                                           </tr>
                                            
                                                        </table>
                                        
                                                    </td>
                                                </tr>   
                                
                                                <tr>
                                                    <td align="left" >
                                                      <table >
                                                        <tr>
                                                            <td>
                                                                <asp:ImageButton ID="btnSave" runat="server" ImageUrl="~/Images/btnSave.jpg" 
                                                                    onclick="btnSave_Click1" />
                                                            </td>
                                                            <td><asp:Button ID="btnPrevious" Text="PreviousRecord" runat="server" 
                                                                    CssClass="button" onclick="btnPrevious_Click" /></td>
                                                            
                                                        </tr>
                                                      </table>
                                                    </td>
                                               </tr> 
                                        </table>
                                    </td>
                                </tr>
                                                                                         
                                <tr id="trdgChr" runat="server">
                                    <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="850px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgCHR" 
                                            runat="server" onrowediting="dgCHR_RowEditing"  >
                                            <Columns>      
                                                <asp:BoundField  DataField="id" HeaderText="id"/>
                                                <asp:BoundField  DataField="C" HeaderText="C" />
                                                <asp:BoundField  DataField="H" HeaderText="H" />
                                                <asp:BoundField  DataField="N" HeaderText="N" />
                                                <asp:BoundField  DataField="S" HeaderText="S"/>
                                                <asp:BoundField  DataField="Ash" HeaderText="Ash" />                                                                                                                                           
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                             </tr>
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer2" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 
</asp:Content>

